home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19971216-19980424 / 000216_news@newsmaster….columbia.edu _Thu Feb 12 12:52:22 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA06867
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 12 Feb 1998 12:52:22 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA08074
  7.     for kermit.misc@watsun; Thu, 12 Feb 1998 12:52:21 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: "Flushing" input characters during scripting?
  12. Date: 12 Feb 1998 17:52:18 GMT
  13. Organization: Columbia University
  14. Lines: 56
  15. Message-ID: <6bvcsi$8e1$1@apakabar.cc.columbia.edu>
  16. References: <rm4t26x9fk.fsf@fluent.com> <6bsspi$nin$1@apakabar.cc.columbia.edu> <rm1zx9y9cz.fsf@fluent.com> <34E32F5A.36AF@sep.stanford.edu>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8402
  19.  
  20. In article <34E32F5A.36AF@sep.stanford.edu>,
  21. Stewart Levin  <stew@sep.stanford.edu> wrote:
  22. : [ Latest kermit, RedHat Linux 3 (not the latest) on a Gateway 2000 PC. ]
  23. : Over a dialup connection, I am feeding a short list
  24. : of items to a text-based application that reformats and
  25. : standardizes them against a database.  Using the INPUT
  26. : and OUTPUT commands to control the flow, I capture the
  27. : relevant lines of application response to a log file
  28. : from whence I extract the updated items offline.
  29. : One ugly hack I'd like to get rid of is using an
  30. : INPUT 1 ZZZZZ
  31. : to flush characters arriving after an end-of-item line
  32. : and before a subsequent item input prompt.  Without it,
  33. : the kermit application quickly hangs, presumably because
  34. : of buffer limits.
  35. :
  36. When you say "latest Kermit", which one do you mean?  The
  37. current version is 6.0.  What do you mean by "hang"?  It
  38. should not hang; an INPUT command should either succeed or
  39. time out.  To the best of my knowledge, that's what it does.
  40.  
  41. : Is there a better solution?  (Yes,
  42. : I did try a couple of commands in the reference manual
  43. : that reset or flush internal buffers.)
  44. Like CLEAR INPUT?  Normally all you should need to do is an
  45. INPUT command for the next prompt.
  46.  
  47. : Also, I found that when I wrote my test scripts to include
  48. : fully-spelled out kermit commands and fully checking
  49. : all status codes, the script produced wierd error messages.
  50. : Abbreviating the commands made the problem go away.
  51. Please send the details to kermit-support@columbia.edu and
  52. we'll sort it out.
  53.  
  54. : Any tips on other ways to conserve scripting buffer space?
  55. :
  56. Abbreviating wherever possible.  Kermit presently does not
  57. support "compiled scripts".
  58.  
  59. : Embedded TAKE commands?
  60. :
  61. Yes, you can do that too.  And macros that call other macros.
  62. And user-defined functions, etc etc.
  63.  
  64. : Looping macros versus straight line expansion?
  65. I'm not sure what you mean, but yes, you can have loops,
  66. SWITCH statements, whatever you want.
  67.  
  68. - Frank